package study2018._0104;

import java.util.Arrays;

public class Demo4 {
	public static void main(String[] args) {
		int[] strs = new int[10];
		int[] str = {
				1, 2, 5, 4
		};
		System.out.println(Arrays.toString(str));
		System.out.println(Arrays.toString(strs));
		for (int i = 0; i < str.length; i++) {
			for (int j = i; j < str.length; j++) {
				if (str[i] > str[j]) {
					int temp = str[i];
					str[i] = str[j];
					str[j] = temp;

				}
			}
		}
		System.out.println(Arrays.toString(str));
	}
}
